package util

import (
	"crypto/md5"
	"fmt"
)

func Md5(s string) string {
	h := md5.New()
	if _,err := h.Write([]byte(s)); err == nil {
		return fmt.Sprintf("%x", h.Sum(nil))
	}
	return ""
}
